package com.jonniespratley.flexdatabasemanager.view.components.logs
{
	import mx.controls.TextArea;
	import mx.logging.targets.LineFormattedTarget;
	import mx.core.mx_internal;
	
	use namespace mx_internal;
	
	public class TracePanelTarget extends LineFormattedTarget
	{
		private var console:TextArea;
		
		public function TracePanelTarget( console:TextArea )
		{
			super();
			this.console = console;
		}
		
		 override mx_internal function internalLog(message:String):void
  {
      console.text += message + "\n";
    }
		
		
	}
}